package bigo.todolist.avocado;

/**
 * A model for each box that contains a task name and checkbox in the task list. Contains helpful methods as well. Helps buld the task list.
 * @author Alex Irlik
 *
 */
public class Model {

	private String name;
	private boolean selected;

	public Model(String name) {
		this.name = name;
		selected = false;
	}

	/**
	 * Gets the name (task name)
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name (task name)
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Checks if checkbox is selected
	 * @return
	 */
	public boolean isSelected() {
		return selected;
	}

	/**
	 * Sets the checkbox to selected or unselected postion
	 * @param selected
	 */
	public void setSelected(boolean selected) {
		this.selected = selected;
	}

}